﻿#include "FITKPHengLEIEnergyModel.h"
#include "FITK_Kernel/FITKEasyParam/FITKParameter.h"
#include "FITK_Kernel/FITKCore/FITKAbstractNDataObject.h"

namespace Interface
{
	FITKPHengLEIEnergyModel::FITKPHengLEIEnergyModel()
	{
		_additionalEnergyModel = new Core::FITKParameter;
	}

	FITKPHengLEIEnergyModel::~FITKPHengLEIEnergyModel()
	{
		if (_additionalEnergyModel) delete _additionalEnergyModel;
	}

	Core::FITKParameter * FITKPHengLEIEnergyModel::getAdditionalData()
	{
		return _additionalEnergyModel;
	}

	void FITKPHengLEIEnergyModel::setAdditionalData(Core::FITKParameter * data)
	{
		if (_additionalEnergyModel && _additionalEnergyModel != data) delete _additionalEnergyModel;
		_additionalEnergyModel = data;
	}
}
